import AiUtil

client = AiUtil.getOpenAI()

response = client.chat.completions.create(
  model="gpt-4-1106-preview",
  seed=3,
  # response_format={ "type": "json_object" },
  messages=[
    {"role": "system", "content": "你是一个诗人"},
    {"role": "user", "content": "写一首诗，描写青海的景色"}
  ]
)
print(response.choices[0].message.content)



